package com.lzit.smart_canteen.controller;

import com.lzit.smart_canteen.service.FoodService;
import com.lzit.smart_canteen.service.ItemService;
import com.lzit.smart_canteen.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class staffPageController {
    @Autowired
    ItemService itemService;
    @Autowired
    OrderService orderService;
    @Autowired
    FoodService foodService;
    //出餐管理页面
    @GetMapping("/toCook")
    private String toCook(Model model){
        System.out.println("我来查询窗口了");
        model.addAttribute("windows", foodService.queryWindow());
        model.addAttribute("pageName", "出餐管理");
        return "/manage/cook";
    }
    @GetMapping("/toMenuManage")
    public String toMenu(Model model) {
        model.addAttribute("windows", foodService.queryWindow());
        model.addAttribute("pageName", "菜单管理");
        return "/manage/menuManage";
    }
}
